/**
 * Created by levy on 16/7/25.
 */

export const ItemUtil = {
    getSalePrice(item, hasToken = true) {
        return (hasToken ? '￥' : '') +
            (item.promotePrice || item.shopPrice || item.goodsPrice || '0');
    },
    getOriginPrice(item, hasToken = true) {
          return (hasToken ? '￥' : '') +
              (item.marketPrice || '0');
    },
};